'use strict';

const Controller = require('egg').Controller;

class soetController extends Controller {
  async index() {
    const { ctx, app } = this;
    const res = await app.mysql.insert('user', { name: '刘洋', age: 18 });
    ctx.body = res;
  }
  async new() {
    const { ctx } = this;
    ctx.body = 'new';
  }
}

module.exports = soetController;
